/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.modules.personassessmen.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fosung.frame.common.persistence.DataEntity;
import com.fosung.frame.modules.assessment.entity.AssessmentTime;
import com.fosung.frame.modules.partytype.entity.PartyType;

/**
 * 党员考核Entity
 * @author 吴
 * @version 2017-08-30
 */
public class PersonAssessment extends DataEntity<PersonAssessment> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String areaName;		// 区域
	private String typeId;		// 社区类型ID
	private String inttSource;		// 初始分数
	private String upperScore;		// 上限分数
	private String assessmentId;		// 周期
	private String state;		// 状态
	private AssessmentTime assessment;
	private PartyType partyType ;
	
	public PersonAssessment() {
		super();
	}

	public PersonAssessment(String id){
		super(id);
	}

	@Length(min=0, max=50, message="名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=50, message="区域长度必须介于 0 和 50 之间")
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
	@Length(min=0, max=64, message="社区类型ID长度必须介于 0 和 64 之间")
	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
	
	public String getInttSource() {
		return inttSource;
	}

	public void setInttSource(String inttSource) {
		this.inttSource = inttSource;
	}
	
	public String getUpperScore() {
		return upperScore;
	}

	public void setUpperScore(String upperScore) {
		this.upperScore = upperScore;
	}
	
	@Length(min=0, max=64, message="周期长度必须介于 0 和 64 之间")
	public String getAssessmentId() {
		return assessmentId;
	}

	public void setAssessmentId(String assessmentId) {
		this.assessmentId = assessmentId;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	public AssessmentTime getAssessment() {
		return assessment;
	}

	public void setAssessment(AssessmentTime assessment) {
		this.assessment = assessment;
	}

	public PartyType getPartyType() {
		return partyType;
	}

	public void setPartyType(PartyType partyType) {
		this.partyType = partyType;
	}
	
}